import 'package:flutter/cupertino.dart';
import 'package:oktoast/oktoast.dart';
import 'package:video_setting/pages/utils/numerical_extension.dart';

class ToastUtil {
  static show(String msg, {duration = 3000}) {
    showToast(msg, duration: Duration(milliseconds: duration), dismissOtherToast: true, textPadding: EdgeInsets.all(20), textStyle: TextStyle(fontSize: 14.px));
  }

  static cancelToast() {
    dismissAllToast();
  }
}
